package JavaPractice;

import java.util.Scanner;

public class Shuzu {
    public static void main(String args[]) {
        Scanner reader = new Scanner(System.in);
        System.out.println("输入数字个数：");
        int count = reader.nextInt();
        if ((count & 1) == 1) {
            System.out.println("是奇数");
        } else {
            System.out.println("是偶数");
        }
        int i = 0;
        double numbers[] = new double[count];
        double sum = 0.0d;
        for (i = 0; i < count; i++) {
            numbers[i] = (double) reader.nextInt();
            sum += numbers[i];
        }
        System.out.println("和为：" + sum);
        System.out.println("数组个数：" + numbers.length);
        // 关闭扫描器
        reader.close();
    }
}
